package com.st.qdmall.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.st.qdmall.dao.AdminDao;
import com.st.qdmall.entity.Admin;
import com.st.qdmall.service.IAdminService;

@Service
public class AdminServiceImpl implements IAdminService {

	// 注入Dao层的对象
	@Autowired
	private AdminDao adminDao;
	
	@Override
	public Admin login(String username, String password) {
		// 调用Dao层
		return adminDao.select(username, password);
	}

}
